package com.example.demo.mapper;

import com.example.demo.web.rest.evt.QueryResourceEvt;
import com.example.demo.web.rest.vm.QueryResourceVm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Desc
 * @Author shiwq
 * @Date 2020-11-30 11:12:36
 */
@Mapper
@Repository
public interface ResourceMapper {
    List<QueryResourceVm> queryResource(QueryResourceEvt evt);

    void insertResource(QueryResourceVm vm);

    void updateResource(QueryResourceVm vm);

    void deleteResource(@Param("resourceId") Long resourceId);
}
